﻿@{
    string actionName = ViewContext.RouteData.Values["Action"].ToString();
    string currentName = ViewBag.CurrentName ?? actionName;
    string parentName = ViewBag.ParentName;
    string parentUrl = ViewBag.ParentUrl;
}

<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">@ViewBag.Title</h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                @Html.ActionLink("首页", "Index", "Home")
                <i class="fa fa-angle-right"></i>
            </li>
            @if (parentName.IsNotNullAndNotWhiteSpace())
            {
                <li>
                    @if (parentUrl.IsNullOrWhiteSpace())
                    {
                        @parentName
                    }
                    else
                    {
                        <a href="@parentUrl">@parentName</a>
                    }
                    <i class="fa fa-angle-right"></i>
                </li>
            }
            <li>
                @currentName
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>